<template>
  <div>
    <div class="top">
      <span>
        <i class="iconfont icon-toggle">猜你喜欢</i>
      </span>
      <span class="like">兴趣定制></span>
    </div>
    <div class="div">
      <div class="box" v-for="(v, i) in letter" :key="i">
        <img :src="v.imgurl" />
        <p>{{ v.list }}</p>
      </div>
    </div>
    <div class="one">
      <i>本周上新</i>

      <p class="circle"><b class="iconfont icon-toggle"></b> 播放</p>
    </div>
  </div>
</template>

<script>
import { getlink } from "@/api/getlink.js";
export default {
  mounted() {
    getlink("/bb/tlike").then((ok) => {
      this.letter = ok.data;
    });
  },
  data() {
    return {
      letter: [],
    };
  },
};
</script>

<style scoped>
span:first-child,
i {
  display: block;
  font-size: 0.36rem;
}
span:last-child {
  font-size: 0.26rem;
}
.top {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  margin-left: 0.3rem;
  margin-right: 0.25rem;
}
.box {
  width: 2.14rem;
  height: 2.94rem;
  margin-top: 0.3rem;
}
img {
  width: 2.14rem;
  height: 2.14rem;
  margin-right: 0.25rem;
}
.div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.one {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  margin-top: 0.16rem;
  margin-left: 0.3rem;
  margin-right: 0.25rem;
}
.circle {
  border: 1px solid gray;
  border-radius: 0.2rem;
  width: 1.3rem;
  text-align: center;
  height: 0.5rem;
  line-height: 0.5rem;
}

.like {
  border: 1px solid gray;
  border-radius: 0.2rem;
}
</style>
